package mygame;

import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.math.Vector3f;
import com.jme3.math.Vector2f;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.math.ColorRGBA;
import com.jme3.scene.shape.Line;
import com.jme3.scene.shape.Dome;
import com.jme3.light.DirectionalLight;
import com.jme3.scene.shape.Cylinder;
import com.jme3.scene.shape.*;
import com.jme3.util.BufferUtils;
import com.jme3.scene.Mesh;
import com.jme3.scene.VertexBuffer.Type;
import com.jme3.math.*;
import com.jme3.scene.Spatial;

public class sphere
{
    private float radius, xPos, yPos, zPos;
    public sphere()
    {
       
    }
   
    public sphere(float radius, float xPos, float yPos, float zPos)
    {
        this.radius = radius;
        this.xPos = xPos;
        this.yPos = yPos;
        this.zPos = zPos;
    }
    public Spatial createSphere()
    {
        Sphere testSphere = new Sphere(20,50,.7f);
        Spatial gSphere = new Geometry("sphere", testSphere);
        gSphere.setLocalTranslation(xPos,yPos,zPos);
        return gSphere;
    }
}

